<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta 
    name="viewport"
    content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
  <meta 
    http-equiv="X-UA-Compatible" 
    content="ie=edge">
  <meta 
    name="theme-color" 
    content="#fff" 
    id="theme-color">
  <meta 
    name="description" 
    content="Hexo">
  <link 
    rel="icon" 
    href="https://img.songhn.com/img/Y67gdd.png">
  <title>安装炫彩蛇</title>
  
    
      <meta 
        property="og:title" 
        content="安装炫彩蛇">
    
    
      <meta 
        property="og:url" 
        content="https://gitee.com/de-long-liu/2020/07/13/%E8%AE%B0%E4%B8%80%E7%AF%87%E5%AE%89%E8%A3%85%E7%82%AB%E5%BD%A9%E8%9B%87%E7%9A%84%E6%96%87%E7%AB%A0/index.html">
    
    
      <meta 
        property="og:img" 
        content="https://img.songhn.com/img/Y67gdd.png">
    
    
    
      <meta 
        property="og:type" 
        content="article">
      <meta 
        property="og:article:published_time" 
        content="2020-07-13">
      <meta 
        property="og:article:modified_time" 
        content="2023-02-05">
      <meta 
        property="og:article:author" 
        content="刘小疯">
      
        
          <meta 
            property="og:article:tag" 
            content="渗透测试工具">
        
      
    
  
  
  <link rel="preload" href="//at.alicdn.com/t/font_1946621_i1kgafibvw.css" as="style" >
  <link rel="preload" href="//at.alicdn.com/t/font_1952792_89b4ac4k4up.css" as="style" >
  <link rel="preload" href="/little-crazy/css/main.css" as="style" >
  
  <link rel="modulepreload" href="//instant.page/5.1.0">
  
  <link rel="stylesheet" href="/little-crazy/css/main.css">
  
  <link rel="stylesheet" href="//at.alicdn.com/t/font_1946621_i1kgafibvw.css">
  
  <link rel="stylesheet" href="//at.alicdn.com/t/font_1952792_89b4ac4k4up.css">
  
  
  
    <link rel="stylesheet" href="/little-crazy/js/lib/lightbox/baguetteBox.min.css">
  
  <script>
    function loadScript(url, cb) {
      var script = document.createElement('script');
      script.src = url;
      if (cb) script.onload = cb;
      script.async = true;
      document.body.appendChild(script);
    }
    function loadCSS(href, data, attr) {
      var sheet = document.createElement('link');
      sheet.ref = 'stylesheet';
      sheet.href = href;
      sheet.dataset[data] = attr;
      document.head.appendChild(sheet);
    }
    function changeCSS(cssFile, data, attr) {
      var oldlink = document.querySelector(data);
      var newlink = document.createElement("link");
      newlink.setAttribute("rel", "stylesheet");
      newlink.setAttribute("href", cssFile);
      newlink.dataset.prism = attr;
      document.head.replaceChild(newlink, oldlink);
    }
  </script>
  
    
  
  <script>
    // control reverse button
    var reverseDarkList = {
      dark: 'light',
      light: 'dark'
    };
    var themeColor = {
      dark: '#1c1c1e',
      light: '#fff'
    }
    // get the data of css prefers-color-scheme
    var getCssMediaQuery = function() {
      return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
    };
    // reverse current darkmode setting function
    var reverseDarkModeSetting = function() {
      var setting = localStorage.getItem('user-color-scheme');
      if(reverseDarkList[setting]) {
        setting = reverseDarkList[setting];
      } else if(setting === null) {
        setting = reverseDarkList[getCssMediaQuery()];
      } else {
        return;
      }
      localStorage.setItem('user-color-scheme', setting);
      return setting;
    };
    // apply current darkmode setting
  </script>
  
    <script>
      var setDarkmode = function(mode) {
      var setting = mode || localStorage.getItem('user-color-scheme');
      if(setting === getCssMediaQuery()) {
        document.documentElement.removeAttribute('data-user-color-scheme');
        localStorage.removeItem('user-color-scheme');
        document.getElementById('theme-color').content = themeColor[setting];
        document.getElementById('theme-color').dataset.mode = setting;
      } else if(reverseDarkList[setting]) {
        document.documentElement.setAttribute('data-user-color-scheme', setting);
        document.getElementById('theme-color').content = themeColor[setting];
        document.getElementById('theme-color').dataset.mode = setting;
      } else {
        document.documentElement.removeAttribute('data-user-color-scheme');
        localStorage.removeItem('user-color-scheme');
        document.getElementById('theme-color').content = themeColor[getCssMediaQuery()];
        document.getElementById('theme-color').dataset.mode = getCssMediaQuery();
      }
    };
    setDarkmode();
    </script>
  
  
  
    <link rel="preload" href="/little-crazy/js/lib/lightbox/baguetteBox.min.js" as="script">
    <link rel="preload" href="/little-crazy/js/lib/lightbox/baguetteBox.min.css" as="style" >
  
  
    <link rel="preload" href="/little-crazy/js/lib/lozad.min.js" as="script">
  
  
  
  
  
  
<meta name="generator" content="Hexo 5.4.2"></head>


  <body>
    <!-- 引入jQuery -->
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
    <div class="wrapper">
      
        <nav class="navbar">
  <div class="navbar-logo">
    <a class="navbar-logo-main" href="/little-crazy/">
      
        <img
          class="navbar-logo-img"
          width="32"
          height="32"
          src="https://img.songhn.com/img/Y67gdd.png" 
          alt="blog logo">
      
      <span class="navbar-logo-dsc">刘小疯的个人博客</span>
      </a>
  </div>
  <div class="navbar-menu">
    
      <a 
        href="/little-crazy/" 
        class="navbar-menu-item">
        
          首页
        
      </a>
    
      <a 
        href="/little-crazy/archives" 
        class="navbar-menu-item">
        
          归档
        
      </a>
    
      <a 
        href="/little-crazy/tags" 
        class="navbar-menu-item">
        
          标签
        
      </a>
    
      <a 
        href="/little-crazy/categories" 
        class="navbar-menu-item">
        
          分类
        
      </a>
    
      <a 
        href="https://gitee.com" 
        class="navbar-menu-item">
        
          关于
        
      </a>
    
    <button 
      class="navbar-menu-item darknavbar navbar-menu-btn" 
      aria-label="Toggle dark mode"
      id="dark">
      <i class="iconfont icon-weather"></i>
    </button>
    <button 
      class="navbar-menu-item searchnavbar navbar-menu-btn" 
      aria-label="Toggle search"
      id="search">
      <!-- <i 
        class="iconfont icon-search" 
        style="font-size: 1.2rem; font-weight: 400;">
      </i> -->
      <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img"
        class="iconify iconify--ion" width="28" height="28" preserveAspectRatio="xMidYMid meet" viewBox="0 0 512 512">
        <path fill="none" stroke="currentColor" stroke-miterlimit="10" stroke-width="28"
          d="M256 80a176 176 0 1 0 176 176A176 176 0 0 0 256 80Z"></path>
        <path fill="none" stroke="currentColor" stroke-miterlimit="10" stroke-width="28"
          d="M232 160a72 72 0 1 0 72 72a72 72 0 0 0-72-72Z"></path>
        <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="28"
          d="M283.64 283.64L336 336"></path>
      </svg>
    </button>
  </div>
</nav>
          
            <div id="local-search" style="display: none">
              <input class="navbar-menu-item" id="search-input" placeholder="请输入搜索内容..." />
              <div id="search-content"></div>
            </div>
            
              <div class="section-wrap">
                <div class="container">
                  <div class="columns">
                    <aside class="left-column">
                      
                        <div class="card card-author">
                          
  <img 
    src="https://img.songhn.com/img/Y67gdd.png" 
    class="author-img"
    width="88"
    height="88"
    alt="author avatar">

<p class="author-name">刘小疯</p>
<p class="author-description">分享我的个人生活与技术学习</p>
<div class="author-message">
  <a 
    class="author-posts-count" 
    href="/little-crazy/archives">
    <span>1</span>
    <span>文章</span>
  </a>
  <a 
    class="author-categories-count" 
    href="/little-crazy/categories">
    <span>1</span>
    <span>分类</span>
  </a>
  <a 
    class="author-tags-count" 
    href="/little-crazy/tags">
    <span>1</span>
    <span>标签</span>
  </a>
</div>

                        </div>
                         <div class="sticky-tablet">
  
  
    <article class="display-when-two-columns spacer">
      <div class="card card-content toc-card">
        <div class="toc-header">
  <i 
    class="iconfont icon-menu" 
    style="padding-right: 2px;">
  </i>目录
</div>

      </div>
    </article>
  
  
  <article class="card card-content categories-widget">
    <div class="categories-card">
  <div class="categories-header">
    <i 
      class="iconfont icon-fenlei" 
      style="padding-right: 2px;">
    </i>分类
  </div>
  <div class="categories-list">
    
      <a href="/little-crazy/categories/%E5%B7%A5%E5%85%B7%E5%AE%89%E8%A3%85/">
        <div class="categories-list-item">
          工具安装
          <span class="categories-list-item-badge">1</span>
        </div>
      </a>
    
  </div>
</div>
  </article>
  
  <article class="card card-content tags-widget">
    <div class="tags-card">
  <div class="tags-header">
    <i 
      class="iconfont icon-biaoqian" 
      style="padding-right: 2px;">
    </i>热门标签
  </div>
  <div class="tags-list">
    
      <a 
        href="/little-crazy/tags/%E6%B8%97%E9%80%8F%E6%B5%8B%E8%AF%95%E5%B7%A5%E5%85%B7/" 
        title="渗透测试工具">
        <div class="tags-list-item">渗透测试工具</div>
      </a>
    
  </div>
</div>
  </article>
  
  
</div>
                    </aside>
                    <main class="main-column">
                      
<article class="card card-content">
  <header>
    <h1 class="post-title">
      安装炫彩蛇
    </h1>
  </header>
  <div class="post-meta post-show-meta">
    <time datetime="2020-07-13T14:30:25.000Z">
      <i 
        class="iconfont icon-calendar" 
        style="margin-right: 2px;">
      </i>
      <span>2020-07-13</span>
    </time>
    
      <span class="dot"></span>
      
        <a 
          href="/little-crazy/categories/%E5%B7%A5%E5%85%B7%E5%AE%89%E8%A3%85/" 
          class="post-meta-link">
          工具安装
        </a>
      
    
    
      <span class="dot"></span>
      <span>2.1k 字</span>
    
  </div>
  
    <div 
      class="post-meta post-show-meta" 
      style="margin-top: -10px;">
      <div style="display: flex; align-items: center;">
        <i 
          class="iconfont icon-biaoqian" 
          style="margin-right: 2px; font-size: 1.15rem;">
        </i>
        
          
          <a 
            href="/little-crazy/tags/%E6%B8%97%E9%80%8F%E6%B5%8B%E8%AF%95%E5%B7%A5%E5%85%B7/" 
            class="post-meta-link">
            渗透测试工具
          </a>
        
      </div>
    </div>
  
  </header>
  <div 
    id="section" 
    class="post-content">
    <p>环境:</p>
<p>VMware17.0.0</p>
<p>操作系统</p>
<p>Ubuntu 22.04.1 LTS (64)</p>
<pre class="highlight"><span class="line">root@fkphak:~<span class="comment"># su root</span></span><br><span class="line">root@fkphak:~<span class="comment"># sysctl -w vm.max_map_count=262144</span></span><br><span class="line">root@fkphak:~<span class="comment"># ulimit -n 65535</span></span><br><span class="line">root@fkphak:~<span class="comment"># curl -sSL https://get.daocloud.io/docker | sh</span></span><br><span class="line"><span class="comment"># Executing docker install script, commit: 66474034547a96caa0a25be56051ff8b726a1b28</span></span><br><span class="line">+ sh -c apt-get update -qq &gt;/dev/null</span><br><span class="line">+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl &gt;/dev/null</span><br><span class="line">E: 无法获得锁 /var/lib/dpkg/lock-frontend。锁正由进程 22708（unattended-upgr）持有</span><br><span class="line">E: 无法获取 dpkg 前端锁 (/var/lib/dpkg/lock-frontend)，是否有其他进程正占用它？</span><br><span class="line">root@fkphak:~<span class="comment"># kill 22708</span></span><br><span class="line">root@fkphak:~<span class="comment"># curl -sSL https://get.daocloud.io/docker | sh</span></span><br><span class="line"><span class="comment"># Executing docker install script, commit: 66474034547a96caa0a25be56051ff8b726a1b28</span></span><br><span class="line">+ sh -c apt-get update -qq &gt;/dev/null</span><br><span class="line">+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl &gt;/dev/null</span><br><span class="line">+ sh -c <span class="built_in">mkdir</span> -p /etc/apt/keyrings &amp;&amp; <span class="built_in">chmod</span> -R 0755 /etc/apt/keyrings</span><br><span class="line">+ sh -c curl -fsSL <span class="string">&quot;https://download.docker.com/linux/ubuntu/gpg&quot;</span> | gpg --dearmor --<span class="built_in">yes</span> -o /etc/apt/keyrings/docker.gpg</span><br><span class="line">+ sh -c <span class="built_in">chmod</span> a+r /etc/apt/keyrings/docker.gpg</span><br><span class="line">+ sh -c <span class="built_in">echo</span> <span class="string">&quot;deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu jammy stable&quot;</span> &gt; /etc/apt/sources.list.d/docker.list</span><br><span class="line">+ sh -c apt-get update -qq &gt;/dev/null</span><br><span class="line">+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce docker-ce-cli containerd.io docker-scan-plugin docker-compose-plugin docker-ce-rootless-extras docker-buildx-plugin &gt;/dev/null</span><br><span class="line">+ sh -c docker version</span><br><span class="line">Client: Docker Engine - Community</span><br><span class="line"> Version:           23.0.0</span><br><span class="line"> API version:       1.42</span><br><span class="line"> Go version:        go1.19.5</span><br><span class="line"> Git commit:        e92dd87</span><br><span class="line"> Built:             Wed Feb  1 17:47:51 2023</span><br><span class="line"> OS/Arch:           linux/amd64</span><br><span class="line"> Context:           default</span><br><span class="line"></span><br><span class="line">Server: Docker Engine - Community</span><br><span class="line"> Engine:</span><br><span class="line">  Version:          23.0.0</span><br><span class="line">  API version:      1.42 (minimum version 1.12)</span><br><span class="line">  Go version:       go1.19.5</span><br><span class="line">  Git commit:       d7573ab</span><br><span class="line">  Built:            Wed Feb  1 17:47:51 2023</span><br><span class="line">  OS/Arch:          linux/amd64</span><br><span class="line">  Experimental:     <span class="literal">false</span></span><br><span class="line"> containerd:</span><br><span class="line">  Version:          1.6.16</span><br><span class="line">  GitCommit:        31aa4358a36870b21a992d3ad2bef29e1d693bec</span><br><span class="line"> runc:</span><br><span class="line">  Version:          1.1.4</span><br><span class="line">  GitCommit:        v1.1.4-0-g5fd4c4d</span><br><span class="line"> docker-init:</span><br><span class="line">  Version:          0.19.0</span><br><span class="line">  GitCommit:        de40ad0</span><br><span class="line"></span><br><span class="line">================================================================================</span><br><span class="line"></span><br><span class="line">To run Docker as a non-privileged user, consider setting up the</span><br><span class="line">Docker daemon <span class="keyword">in</span> rootless mode <span class="keyword">for</span> your user:</span><br><span class="line"></span><br><span class="line">    dockerd-rootless-setuptool.sh install</span><br><span class="line"></span><br><span class="line">Visit https://docs.docker.com/go/rootless/ to learn about rootless mode.</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">To run the Docker daemon as a fully privileged service, but granting non-root</span><br><span class="line"><span class="built_in">users</span> access, refer to https://docs.docker.com/go/daemon-access/</span><br><span class="line"></span><br><span class="line">WARNING: Access to the remote API on a privileged Docker daemon is equivalent</span><br><span class="line">         to root access on the host. Refer to the <span class="string">&#x27;Docker daemon attack surface&#x27;</span></span><br><span class="line">         documentation <span class="keyword">for</span> details: https://docs.docker.com/go/attack-surface/</span><br><span class="line"></span><br><span class="line">================================================================================</span><br><span class="line"></span><br><span class="line">root@fkphak:~<span class="comment"># service docker start</span></span><br><span class="line">root@fkphak:~<span class="comment"># docker ps</span></span><br><span class="line">CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES</span><br><span class="line">root@fkphak:~<span class="comment"># curl -L https://get.daocloud.io/docker/compose/releases/download/1.25.5/docker-compose-`uname -s`-`uname -m` &gt; /usr/bin/docker-compose</span></span><br><span class="line">  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current</span><br><span class="line">                                 Dload  Upload   Total   Spent    Left  Speed</span><br><span class="line">100   423  100   423    0     0    314      0  0:00:01  0:00:01 --:--:--   314</span><br><span class="line">100 16.7M  100 16.7M    0     0  3690k      0  0:00:04  0:00:04 --:--:-- 7629k</span><br><span class="line">root@fkphak:~<span class="comment"># chmod +x /usr/bin/docker-compose</span></span><br><span class="line">root@fkphak:~<span class="comment"># docker-compose version</span></span><br><span class="line">docker-compose version 1.25.5, build 8a1c60f6</span><br><span class="line">docker-py version: 4.1.0</span><br><span class="line">CPython version: 3.7.5</span><br><span class="line">OpenSSL version: OpenSSL 1.1.0l  10 Sep 2019</span><br><span class="line">root@fkphak:~<span class="comment"># dd if=/dev/zero of=/root/swapfile2 bs=1M count=2048</span></span><br><span class="line">记录了2048+0 的读入</span><br><span class="line">记录了2048+0 的写出</span><br><span class="line">2147483648字节（2.1 GB，2.0 GiB）已复制，1.93042 s，1.1 GB/s</span><br><span class="line">root@fkphak:~<span class="comment"># chmod 0600 /root/swapfile2</span></span><br><span class="line">root@fkphak:~<span class="comment"># mkswap /root/swapfile2</span></span><br><span class="line">正在设置交换空间版本 1，大小 = 2 GiB (2147479552  个字节)</span><br><span class="line">无标签， UUID=866d4fcf-c65d-448b-9fc5-e57419c16dc3</span><br><span class="line">root@fkphak:~<span class="comment"># swapon /root/swapfile2</span></span><br><span class="line">root@fkphak:~<span class="comment"># sysctl vm.swappiness=60</span></span><br><span class="line">vm.swappiness = 60</span><br><span class="line">root@fkphak:~<span class="comment"># echo &#x27;/root/swapfile2  swap  swap  defaults&#x27; &gt;&gt; /etc/fstab</span></span><br><span class="line">root@fkphak:~<span class="comment"># export VIPER_DIR=/root/VIPER</span></span><br><span class="line">root@fkphak:~<span class="comment"># mkdir -p $VIPER_DIR &amp;&amp; cd $VIPER_DIR</span></span><br><span class="line">root@fkphak:~/VIPER<span class="comment"># tee docker-compose.yml &lt;&lt;-&#x27;EOF&#x27;</span></span><br><span class="line">version: <span class="string">&quot;3&quot;</span></span><br><span class="line">services:</span><br><span class="line">  viper:</span><br><span class="line">    image: registry.cn-shenzhen.aliyuncs.com/toys/viper:latest</span><br><span class="line">    container_name: viper-c</span><br><span class="line">    network_mode: <span class="string">&quot;host&quot;</span></span><br><span class="line">    restart: always</span><br><span class="line">    volumes:</span><br><span class="line">      - <span class="variable">$&#123;PWD&#125;</span>/loot:/root/.msf4/loot</span><br><span class="line">      - <span class="variable">$&#123;PWD&#125;</span>/db:/root/viper/Docker/db</span><br><span class="line">      - <span class="variable">$&#123;PWD&#125;</span>/module:/root/viper/Docker/module</span><br><span class="line">      - <span class="variable">$&#123;PWD&#125;</span>/log:/root/viper/Docker/log</span><br><span class="line">      - <span class="variable">$&#123;PWD&#125;</span>/nginxconfig:/root/viper/Docker/nginxconfig</span><br><span class="line">    <span class="built_in">command</span>: [<span class="string">&quot;VIPER_PASSWORD&quot;</span>]</span><br><span class="line">EOF</span><br><span class="line">version: <span class="string">&quot;3&quot;</span></span><br><span class="line">services:</span><br><span class="line">  viper:</span><br><span class="line">    image: registry.cn-shenzhen.aliyuncs.com/toys/viper:latest</span><br><span class="line">    container_name: viper-c</span><br><span class="line">    network_mode: <span class="string">&quot;host&quot;</span></span><br><span class="line">    restart: always</span><br><span class="line">    volumes:</span><br><span class="line">      - <span class="variable">$&#123;PWD&#125;</span>/loot:/root/.msf4/loot</span><br><span class="line">      - <span class="variable">$&#123;PWD&#125;</span>/db:/root/viper/Docker/db</span><br><span class="line">      - <span class="variable">$&#123;PWD&#125;</span>/module:/root/viper/Docker/module</span><br><span class="line">      - <span class="variable">$&#123;PWD&#125;</span>/log:/root/viper/Docker/log</span><br><span class="line">      - <span class="variable">$&#123;PWD&#125;</span>/nginxconfig:/root/viper/Docker/nginxconfig</span><br><span class="line">    <span class="built_in">command</span>: [<span class="string">&quot;VIPER_PASSWORD&quot;</span>]</span><br><span class="line">root@fkphak:~/VIPER<span class="comment"># export VIPER_PASSWORD=DIYpassword</span></span><br><span class="line">root@fkphak:~/VIPER<span class="comment"># sed -i &quot;s/VIPER_PASSWORD/$VIPER_PASSWORD/g&quot; docker-compose.yml</span></span><br><span class="line">root@fkphak:~/VIPER<span class="comment"># docker-compose config</span></span><br><span class="line">services:</span><br><span class="line">  viper:</span><br><span class="line">    <span class="built_in">command</span>:</span><br><span class="line">    - wananldl12138</span><br><span class="line">    container_name: viper-c</span><br><span class="line">    image: registry.cn-shenzhen.aliyuncs.com/toys/viper:latest</span><br><span class="line">    network_mode: host</span><br><span class="line">    restart: always</span><br><span class="line">    volumes:</span><br><span class="line">    - /root/VIPER/loot:/root/.msf4/loot:rw</span><br><span class="line">    - /root/VIPER/db:/root/viper/Docker/db:rw</span><br><span class="line">    - /root/VIPER/module:/root/viper/Docker/module:rw</span><br><span class="line">    - /root/VIPER/log:/root/viper/Docker/log:rw</span><br><span class="line">    - /root/VIPER/nginxconfig:/root/viper/Docker/nginxconfig:rw</span><br><span class="line">version: <span class="string">&#x27;3.0&#x27;</span></span><br><span class="line"></span><br><span class="line">root@fkphak:~/VIPER<span class="comment"># cd $VIPER_DIR</span></span><br><span class="line">root@fkphak:~/VIPER<span class="comment"># docker-compose up -d</span></span><br><span class="line">Pulling viper (registry.cn-shenzhen.aliyuncs.com/toys/viper:latest)...</span><br><span class="line">latest: Pulling from toys/viper</span><br><span class="line">2ba87bafb201: Pull complete</span><br><span class="line">Digest: sha256:997cd5c6872e3a80c0dcaa2ef5f78991e2f7b15c1db433911620675db1f40b2e</span><br><span class="line">Status: Downloaded newer image <span class="keyword">for</span> registry.cn-shenzhen.aliyuncs.com/toys/viper:latest</span><br><span class="line">Creating viper-c ... <span class="keyword">done</span></span><br><span class="line">root@fkphak:~/VIPER<span class="comment"># netstat -aptn</span></span><br><span class="line">激活Internet连接 (服务器和已建立连接的)</span><br><span class="line">Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    </span><br><span class="line">tcp        0      0 0.0.0.0:28888           0.0.0.0:*               LISTEN      53684/python3.9     </span><br><span class="line">tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      3490/sshd: /usr/sbi </span><br><span class="line">tcp        0      0 127.0.0.1:6011          0.0.0.0:*               LISTEN      3497/sshd: root@pts </span><br><span class="line">tcp        0      0 127.0.0.1:6012          0.0.0.0:*               LISTEN      27213/sshd: root@pt </span><br><span class="line">tcp        0      0 0.0.0.0:60000           0.0.0.0:*               LISTEN      53713/nginx: master </span><br><span class="line">tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      662/systemd-resolve </span><br><span class="line">tcp        0      0 127.0.0.1:60004         0.0.0.0:*               LISTEN      53605/redis-server  </span><br><span class="line">tcp        0      0 127.0.0.1:60005         0.0.0.0:*               LISTEN      53716/thin server ( </span><br><span class="line">tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      924/cupsd           </span><br><span class="line">tcp        0    248 192.168.73.100:22       192.168.73.1:56947      ESTABLISHED 27213/sshd: root@pt </span><br><span class="line">tcp        0      0 127.0.0.1:46834         127.0.0.1:60000         TIME_WAIT   -                   </span><br><span class="line">tcp        0      0 127.0.0.1:37426         127.0.0.1:60000         TIME_WAIT   -                   </span><br><span class="line">tcp        0      0 192.168.73.100:22       192.168.73.1:62081      ESTABLISHED 3497/sshd: root@pts </span><br><span class="line">tcp6       0      0 :::28888                :::*                    LISTEN      53684/python3.9     </span><br><span class="line">tcp6       0      0 :::22                   :::*                    LISTEN      3490/sshd: /usr/sbi </span><br><span class="line">tcp6       0      0 ::1:631                 :::*                    LISTEN      924/cupsd           </span><br><span class="line">tcp6       0      0 ::1:6012                :::*                    LISTEN      27213/sshd: root@pt </span><br><span class="line">tcp6       0      0 ::1:6011                :::*                    LISTEN      3497/sshd: root@pts </span><br><span class="line">root@fkphak:~/VIPER<span class="comment"># netstat -aptn</span></span><br><span class="line">激活Internet连接 (服务器和已建立连接的)</span><br><span class="line">Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    </span><br><span class="line">tcp        0      0 0.0.0.0:28888           0.0.0.0:*               LISTEN      53684/python3.9     </span><br><span class="line">tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      3490/sshd: /usr/sbi </span><br><span class="line">tcp        0      0 127.0.0.1:6011          0.0.0.0:*               LISTEN      3497/sshd: root@pts </span><br><span class="line">tcp        0      0 127.0.0.1:6012          0.0.0.0:*               LISTEN      27213/sshd: root@pt </span><br><span class="line">tcp        0      0 0.0.0.0:60000           0.0.0.0:*               LISTEN      53713/nginx: master </span><br><span class="line">tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      662/systemd-resolve </span><br><span class="line">tcp        0      0 127.0.0.1:60004         0.0.0.0:*               LISTEN      53605/redis-server  </span><br><span class="line">tcp        0      0 127.0.0.1:60005         0.0.0.0:*               LISTEN      53716/thin server ( </span><br><span class="line">tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      924/cupsd           </span><br><span class="line">tcp        0     52 192.168.73.100:22       192.168.73.1:56947      ESTABLISHED 27213/sshd: root@pt </span><br><span class="line">tcp        0      0 127.0.0.1:46834         127.0.0.1:60000         TIME_WAIT   -                   </span><br><span class="line">tcp        0      0 127.0.0.1:37426         127.0.0.1:60000         TIME_WAIT   -                   </span><br><span class="line">tcp        0      0 192.168.73.100:22       192.168.73.1:62081      ESTABLISHED 3497/sshd: root@pts </span><br><span class="line">tcp6       0      0 :::28888                :::*                    LISTEN      53684/python3.9     </span><br><span class="line">tcp6       0      0 :::22                   :::*                    LISTEN      3490/sshd: /usr/sbi </span><br><span class="line">tcp6       0      0 ::1:631                 :::*                    LISTEN      924/cupsd           </span><br><span class="line">tcp6       0      0 ::1:6012                :::*                    LISTEN      27213/sshd: root@pt </span><br><span class="line">tcp6       0      0 ::1:6011                :::*                    LISTEN      3497/sshd: root@pts </span><br><span class="line">root@fkphak:~/VIPER<span class="comment"># ufw allow 60000</span></span><br><span class="line">规则已添加</span><br><span class="line">规则已添加 (v6)</span><br><span class="line">root@fkphak:~/VIPER<span class="comment"># netstat -aptn</span></span><br><span class="line">激活Internet连接 (服务器和已建立连接的)</span><br><span class="line">Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    </span><br><span class="line">tcp        0      0 0.0.0.0:28888           0.0.0.0:*               LISTEN      53684/python3.9     </span><br><span class="line">tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      3490/sshd: /usr/sbi </span><br><span class="line">tcp        0      0 127.0.0.1:6011          0.0.0.0:*               LISTEN      3497/sshd: root@pts </span><br><span class="line">tcp        0      0 127.0.0.1:6012          0.0.0.0:*               LISTEN      27213/sshd: root@pt </span><br><span class="line">tcp        0      0 0.0.0.0:60000           0.0.0.0:*               LISTEN      53713/nginx: master </span><br><span class="line">tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      662/systemd-resolve </span><br><span class="line">tcp        0      0 127.0.0.1:60004         0.0.0.0:*               LISTEN      53605/redis-server  </span><br><span class="line">tcp        0      0 127.0.0.1:60005         0.0.0.0:*               LISTEN      53716/thin server ( </span><br><span class="line">tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      924/cupsd           </span><br><span class="line">tcp        0      0 127.0.0.1:48876         127.0.0.1:60000         TIME_WAIT   -                   </span><br><span class="line">tcp        0     52 192.168.73.100:22       192.168.73.1:56947      ESTABLISHED 27213/sshd: root@pt </span><br><span class="line">tcp        0      0 127.0.0.1:51276         127.0.0.1:60000         TIME_WAIT   -                   </span><br><span class="line">tcp        0      0 192.168.73.100:60000    192.168.73.1:57403      TIME_WAIT   -                   </span><br><span class="line">tcp        0      0 192.168.73.100:60000    192.168.73.1:57411      TIME_WAIT   -                   </span><br><span class="line">tcp        0      0 192.168.73.100:60000    192.168.73.1:57412      ESTABLISHED 53714/nginx: worker </span><br><span class="line">tcp        0      0 192.168.73.100:60000    192.168.73.1:57401      ESTABLISHED 53714/nginx: worker </span><br><span class="line">tcp        0      0 192.168.73.100:60000    192.168.73.1:57408      ESTABLISHED 53714/nginx: worker </span><br><span class="line">tcp        0      0 192.168.73.100:60000    192.168.73.1:57409      ESTABLISHED 53714/nginx: worker </span><br><span class="line">tcp        0      0 192.168.73.100:22       192.168.73.1:62081      ESTABLISHED 3497/sshd: root@pts </span><br><span class="line">tcp6       0      0 :::28888                :::*                    LISTEN      53684/python3.9     </span><br><span class="line">tcp6       0      0 :::22                   :::*                    LISTEN      3490/sshd: /usr/sbi </span><br><span class="line">tcp6       0      0 ::1:631                 :::*                    LISTEN      924/cupsd           </span><br><span class="line">tcp6       0      0 ::1:6012                :::*                    LISTEN      27213/sshd: root@pt </span><br><span class="line">tcp6       0      0 ::1:6011                :::*                    LISTEN      3497/sshd: root@pts </span><br><span class="line">root@fkphak:~/VIPER<span class="comment"># </span></span><br><span class="line"></span><br></pre>
<p>在打开端口的时候遇到了一点问题,只有使用ufw打开端口才能正常,如果你想通过systemctl关闭防火墙的话会有找不到服务或者命令的问题.</p>
<p>这里我参考了<a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_15028721/article/details/127278413%E7%9A%84%E5%8D%9A%E6%96%87">https://blog.csdn.net/qq_15028721/article/details/127278413的博文</a>.</p>
<p>懒得截图了,直接把终端复制下来了.安装完成打开浏览器访问<br>ip:60000</p>
<p><img src="" alt="图片" srcset="" class="lozad post-image"></p>
<p>前面有个登录,用户名是root输入密码就行</p>

  </div>
  <div>
    
      <div 
        class="post-note note-warning copyright" 
        style="margin-top: 42px">
        <p>
          <span style="font-weight: bold;">作者：</span><a 
            target="_blank" 
            rel="nofollow noopener noreferrer" 
            href="/little-crazy/about">
            刘小疯
          </a>
        </p>
        <p>
          <span style="font-weight: bold;">文章链接：</span><a 
            target="_blank" 
            rel="nofollow noopener noreferrer" 
            href="https://gitee.com/de-long-liu/2020/07/13/%E8%AE%B0%E4%B8%80%E7%AF%87%E5%AE%89%E8%A3%85%E7%82%AB%E5%BD%A9%E8%9B%87%E7%9A%84%E6%96%87%E7%AB%A0/">
            https://gitee.com/de-long-liu/2020/07/13/%E8%AE%B0%E4%B8%80%E7%AF%87%E5%AE%89%E8%A3%85%E7%82%AB%E5%BD%A9%E8%9B%87%E7%9A%84%E6%96%87%E7%AB%A0/
          </a>
        </p>
        <p><span style="font-weight: bold;">版权声明：</span>本博客所有文章除特别声明外，均采用<a target="_blank" rel="noopener" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh">CC BY-NC-SA 4.0 协议</a>。转载请注明出处！</p>
      </div>
    
  </div>
</article>
<div class="nav">
  
  
</div>

<div 
  class="card card-content toc-card" 
  id="mobiletoc">
  <div class="toc-header">
  <i 
    class="iconfont icon-menu" 
    style="padding-right: 2px;">
  </i>目录
</div>

</div>
                    </main>
                    <aside class="right-column">
                      <div class="sticky-widescreen">
  
  
    <article class="card card-content toc-card">
      <div class="toc-header">
  <i 
    class="iconfont icon-menu" 
    style="padding-right: 2px;">
  </i>目录
</div>

    </article>
  
  
  <article class="card card-content">
    <div class="recent-posts-card">
  <div class="recent-posts-header">
    <i 
      class="iconfont icon-wenzhang_huaban" 
      style="padding-right: 2px;">
    </i>最近文章
  </div>
  <div class="recent-posts-list">
    
      <div class="recent-posts-item">
        <div class="recent-posts-item-title">2020-07-13</div>
        <a href="/little-crazy/2020/07/13/%E8%AE%B0%E4%B8%80%E7%AF%87%E5%AE%89%E8%A3%85%E7%82%AB%E5%BD%A9%E8%9B%87%E7%9A%84%E6%96%87%E7%AB%A0/"><div class="recent-posts-item-content">安装炫彩蛇</div></a>
      </div>
    
  </div>
</div>
  </article>
  
  
</div>
                    </aside>
                  </div>
                </div>
              </div>
    </div>
    
      <footer class="footer">
  <div class="footer-container">
    <div>
      <div class="footer-dsc">
        <span>
          Copyright ©
          
            2020
          
          
                - 
                2023
          
        </span>
        &nbsp;
        <a 
          href="/little-crazy/" 
          class="footer-link">
          刘小疯的个人博客
        </a>
      </div>
    </div>

    
      <div class="footer-dsc">
        
          Powered by
          <a 
            href="https://hexo.io/" 
            class="footer-link" 
            target="_blank" 
            rel="nofollow noopener noreferrer">
            &nbsp;Hexo
          </a>
        
        
          <span>&nbsp;|&nbsp;</span>
        
        
          Theme -
          <a 
            href="https://github.com/theme-kaze" 
            class="footer-link" 
            target="_blank"
            rel="nofollow noopener noreferrer">
            &nbsp;Kaze
          </a>
        
      </div>
    
    
    
    
</footer>

        
  <a 
    role="button" 
    id="scrollbutton" 
    class="basebutton" 
    aria-label="回到顶部">
    <i class="iconfont icon-arrowleft button-icon"></i>
  </a>

<a 
  role="button" 
  id="menubutton"
  aria-label="menu button"
  class="basebutton">
  <i class="iconfont icon-menu button-icon"></i>
</a>
<a 
  role="button" 
  id="popbutton" 
  class="basebutton" 
  aria-label="控制中心">
  <i class="iconfont icon-expand button-icon"></i>
</a>
<a 
  role="button" 
  id="darkbutton" 
  class="basebutton darkwidget" 
  aria-label="夜色模式">
  <i class="iconfont icon-weather button-icon"></i>
</a>
<a 
  role="button" 
  id="searchbutton" 
  class="basebutton searchwidget" 
  aria-label="搜索">
  <i class="iconfont icon-search button-icon"></i>
</a>
          
            
                  
                    <script>
  var addImgLayout = function () {
    var img = document.querySelectorAll('.post-content img')
    var i
    for (i = 0; i < img.length; i++) {
      var wrapper = document.createElement('a')
      wrapper.setAttribute('href', img[i].getAttribute('data-src'))
      wrapper.setAttribute('aria-label', 'illustration')
      wrapper.style.cssText =
        'width: 100%; display: flex; justify-content: center;'
      if (img[i].alt) wrapper.dataset.caption = img[i].alt
      wrapper.dataset.nolink = true
      img[i].before(wrapper)
      wrapper.append(img[i])
      var divWrap = document.createElement('div')
      divWrap.classList.add('gallery')
      wrapper.before(divWrap)
      divWrap.append(wrapper)
    }
    baguetteBox.run('.gallery')
  }
</script>
<script>
  loadScript(
    "/little-crazy/js/lib/lightbox/baguetteBox.min.js",
    addImgLayout
  )
</script>

                      
                        
                          <script src="/little-crazy/js/main.js"></script>
                            
                                
                                  <script>
                                    var addLazyload = function () {
                                      var observer = lozad('.lozad', {
                                        load: function (el) {
                                          el.srcset = el.getAttribute('data-src')
                                        },
                                        loaded: function (el) {
                                          el.classList.add('loaded')
                                        },
                                      })
                                      observer.observe()
                                    }
                                  </script>
                                  <script>
                                    loadScript('/little-crazy/js/lib/lozad.min.js', addLazyload)
                                  </script>
                                  
                                    <script src="//instant.page/5.1.0" type="module"
                                      integrity="sha384-by67kQnR+pyfy8yWP4kPO12fHKRLHZPfEsiSXR8u2IKcTdxD805MGUXBzVPnkLHw"></script>
                                    
                                        
                                            <!-- 雪花特效 -->
                                            
                                              <script type="text/javascript"
                                                src='/little-crazy/js/lib/others/snow.js'></script>
                                              
                                                <!-- 点击爱心特效 -->
                                                
                                                  <script type="text/javascript"
                                                    src='/little-crazy/js/lib/others/love.js'></script>
                                                  
                                                    <!-- 搞怪标题 -->
                                                    
                                                      <script type="text/javascript"
                                                        src='/little-crazy/js/lib/others/FunnyTitle.js'></script>
                                                      
  </body>

</html>